/*
 * @Author: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @Date: 2022-09-22 17:02:50
 * @LastEditors: 郭招娣 10615594+guo-zhaodi@user.noreply.gitee.com
 * @LastEditTime: 2022-09-29 11:04:19
 * @FilePath: \客户端\app\src\api\article.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { postUrl, getUrl, deleteUrl } from "@/utils/request";
// 获取文章
export const asyncArticleLists = async (url, params) => await getUrl(url, params);

// 获取标签
export const asyncTagLists = async (url, params) => await getUrl(url, params);

// 获取标签
export const asyncClassLists = async (url, params) => await getUrl(url, params);


// 搜索
export const asyncZan = async (url, params) => await postUrl(url, params);

// 搜索记录
export const asyncSearch = async (url, params) => await postUrl(url, params);

// 知识小册
export const asyncKnowledge = async (url, params) => await getUrl(url, params);

// 登录
export const asyncLogin = async (url, params) => await postUrl(url, params);